how to determine the explicit formula